package com.zby.big_event_zby.service.Imp;

import com.zby.big_event_zby.mapper.LoginMapper;
import com.zby.big_event_zby.pojo.User;
import com.zby.big_event_zby.service.LoginService;
import com.zby.big_event_zby.utils.Md5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @auther ZBY
 */
@Service
public class LoginServiceImp implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public User login(String username, String password) {
        String md5String = Md5Util.getMD5String(password);

        return loginMapper.login(username,md5String);
    }

}
